package com.example.gymlearning.entity;

import java.util.Date;

public class User {
    private static final long serialVersionUID = 1L;
        private  Long  id;
        private String username;
        private String email;
        private  int age;
        private String password;
        private int  experience;
        private int  level;
        private Date createTime;
        private Date updatedTime;

        //无参构造
    public User() {

    }
    //有参构造

        public User(Long id, String username, String email, int age, String password, int experience, int level, Date createTime, Date updateTime) {
                this.id = id;
                this.username = username;
                this.email = email;
                this.age = age;
                this.password = password;
                this.experience = experience;
                this.level = level;
                this.createTime = createTime;
                this.updatedTime = updateTime;
        }
        //get和set方法

        public Long getId() {
                return id;
        }

        public void setId(Long id) {
                this.id = id;
        }

        public String getUsername() {
                return username;
        }

        public void setUsername(String username) {
                this.username = username;
        }

        public String getEmail() {
                return email;
        }

        public void setEmail(String email) {
                this.email = email;
        }

        public int getAge() {
                return age;
        }

        public void setAge(int age) {
                this.age = age;
        }

        public String getPassword() {
                return password;
        }

        public void setPassword(String password) {
                this.password = password;
        }

        public int getExperience() {
                return experience;
        }

        public void setExperience(int experience) {
                this.experience = experience;
        }

        public int getLevel() {
                return level;
        }

        public void setLevel(int level) {
                this.level = level;
        }

        public Date getCreateTime() {
                return createTime;
        }

        public void setCreateTime(Date createTime) {
                this.createTime = createTime;
        }

        public Date getUpdatedTime() {
                return updatedTime;
        }

        public void setUpdatedTime(Date updateTime) {
                this.updatedTime = updateTime;
        }
}
